<?php
namespace app\index\model;
use think\Model;
class User extends Model
{
	protected $auto = ['ip', 'password'];
	protected $autoWriteTimestamp = 'datetime';
	
	protected function setPasswordAttr($value)
	{
		return md5($value);
	}
}
